#include <stdio.h>
#include <math.h>
int main() {
	int a=1,b, i, x,y,z;
	for (a; a <= 49; a++) {
	b=99-a;
	i = b - a;
	x=a;
	y=b;
	while (i != 0) {
		y = x;
		x = i;
		i = abs(y - x);
	}
	if (y%3==0){
	printf("(%d,%d)\t",a,b),z++;
	if(z%4==0)
	printf("\n");}
	}
}

